<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/4/21
 * Time: 15:36
 */

namespace App\Business\DataLog;
use App\Models\log_database;
use Illuminate\Support\Facades\DB;


/**
 * 记录数据库的操作
 *
 * Class DataBase
 * @package App\Business\DataLog
 */
class DataBase extends LogBase
{

    public $query;



    protected function defaultInitialize()
    {
        $this->log=new log_database();
        $this->log->SQL=($this->query->sql).(";  - [".join(",",$this->query->bindings)."]");
    }


}